import axios from 'axios';
// 审批详情
export function getapprovalDetail(data: any) {
  return axios.get('/approval/detail_approval', {
    params: data,
  });
}

// 审批列表;
export function getlist_approval(data: any) {
  return axios.get('/approval/list_approval', {
    params: data,
  });
}

// 审核人信息;
export function getFirstApproval(data: any) {
  return axios.get('/approval/first_approval', {
    params: data,
  });
}

// 我申请的;
export function getMyApproval(data: any) {
  return axios.get('/approval/my_apply_approval', {
    params: data,
  });
}

// 我处理的;
export function getmyhandleApproval(data: any) {
  return axios.get('/approval/my_handle_approval', {
    params: data,
  });
}

// 抄送我的;
export function getcopuApproval(data: any) {
  return axios.get('/approval/my_copy_approval', {
    params: data,
  });
}

// 提交审批
export function submitApproval(data: any) {
  return axios.post('/approval/submit_approval', data);
}
//撤销审批
export function cancel_approval(data: any) {
  return axios.post('/approval/cancel_approval', data);
}
// 通过审批
export function pass_approval(data: any) {
  return axios.post('/approval/pass_approval', data);
}
// 拒绝审批
export function refuseApproval(data: any) {
  return axios.post('/approval/refuse_approval', data);
}
